package cn.edu.ujn.lab3.dao;

import java.util.List;

import cn.edu.ujn.lab3.dao.Customer;

public interface CustomerMapper {
	int deleteByPrimaryKey(Integer custId);

	int insert(Customer record);

	int insertSelective(Customer record);

	Customer selectByPrimaryKey(Integer custId);

	int updateByPrimaryKeySelective(Customer record);

	int updateByPrimaryKey(Customer record);

	// 客户列表
	public List<Customer> selectCustomerList(Customer customer);

	// 客户数
	public Integer selectCustomerListCount(Customer customer);
	
	// 删除客户
	int deleteCustomer (Integer id);
	
	//创建用户
	public int createCustomer(Customer customer);
	// 通过id查询客户
	public Customer getCustomerById(Integer id);
	// 更新客户信息
	public int updateCustomer(Customer customer);

}